import 'package:flutter/material.dart';

class MyApp6 extends StatelessWidget {
  const MyApp6({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      // 导航条
      appBar: AppBar(
        title: const Text('Flutter初体验',
            style: TextStyle(color: Colors.white, fontSize: 20)),
        backgroundColor: Colors.pink,
        centerTitle: true,
      ),
      // 主体区域
      body:  const Text(
      '《春宵》 苏轼 \n 春宵一刻值千金，花有清香月有阴。\n 歌管楼台声细细，秋千院落夜沉沉。歌管楼台声细细，秋千院落夜沉沉。\n 歌管楼台声细细，秋千院落夜沉沉。',
      style: TextStyle(
        fontSize: 20,
        color: Colors.red,
        decoration: TextDecoration.underline,
        decorationColor: Colors.blue,
        decorationStyle: TextDecorationStyle.dashed,
        decorationThickness: 2,
        height: 1,
        fontWeight: FontWeight.bold,
        fontFamily: 'KaiTi',
      ),
      textAlign: TextAlign.center,
      maxLines: 3,
      overflow: TextOverflow.ellipsis,
      )
    );
  }
}